import time
incomplete_sign = 50
print("="*25+'开始下载'+"="*25)
for i in range(incomplete_sign+1):
    completed = "*" * i
    incomplete = "." * (incomplete_sign - i)
    percentage = (i / incomplete_sign)*100
    percentage = round(percentage, 2)
    # print("\r{:.0%}[{}{}]" .format(percentage, completed, incomplete), end="")
    print(f"\r{percentage}%[{completed}{incomplete}]", end='')
    time.sleep(0.5)
print()
print("="*25+'下载完成'+'='*25)
